<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>AdWords::V13::ReportService::ReportServiceWrapper</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
    <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>     
    <div class="banner">
        <h1>
            <span class="type">Class</span> 
            AdWords::V13::ReportService::ReportServiceWrapper 
            
                <span class="parent">&lt; 
                    
                    Object
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../../files/lib/adwords4r/v13/ReportServiceWrapper_rb.html">lib/adwords4r/v13/ReportServiceWrapper.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    
    <div class="description">
        <p>
Wrapper class for the v13 Report service. This class is automatically
generated.
</p>

    </div>
    

    

    
    

    
    
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
    
        <dt>D</dt>
        <dd>
            <ul>
                
                <li><a href="#M000076">deleteReport</a>,</li>
                
                <li><a href="#M000089">downloadCsvReport</a>,</li>
                
                <li><a href="#M000088">downloadXmlReport</a></li>
                
            </ul>
        </dd>
    
        <dt>G</dt>
        <dd>
            <ul>
                
                <li><a href="#M000078">getAllJobs</a>,</li>
                
                <li><a href="#M000080">getGzipReportDownloadUrl</a>,</li>
                
                <li><a href="#M000082">getReportDownloadUrl</a>,</li>
                
                <li><a href="#M000084">getReportJobStatus</a></li>
                
            </ul>
        </dd>
    
        <dt>N</dt>
        <dd>
            <ul>
                
                <li><a href="#M000075">new</a></li>
                
            </ul>
        </dd>
    
        <dt>S</dt>
        <dd>
            <ul>
                
                <li><a href="#M000086">scheduleReportJob</a></li>
                
            </ul>
        </dd>
    
        <dt>V</dt>
        <dd>
            <ul>
                
                <li><a href="#M000087">validateReportJob</a></li>
                
            </ul>
        </dd>
    
    </dl>
    

    

    

    

    

    
    <div class="sectiontitle">Attributes</div>
    <table border='0' cellpadding='5'>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>api</td>
            <td class='attr-desc'><p>
Holds the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs.
</p></td>
        </tr>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>module</td>
            <td class='attr-desc'><p>
Holds a shortcut to the parent module. Use this to avoid typing the full
class name when creating classes belonging to this service, e.g.
</p>
<pre>
 service_object.module::ClassName
</pre>
<p>
instead of
</p>
<pre>
 AdWords::V13::ReportService::ClassName
</pre>
<p>
This will make it easier to migrate your code between <a
href="../../API.html">API</a> versions.
</p></td>
        </tr>
        
    </table>
    

    
            <div class="sectiontitle">Class Public methods</div>
            
            <div class="method">
                <div class="title" id="M000075">
                    
                    <a name="M000075"></a><b>new</b>(driver, api)
                    
                </div>
                
                <div class="description">
                  <p>
Constructor for <a
href="ReportServiceWrapper.html">ReportServiceWrapper</a>.
</p>
<p>
Args:
</p>
<ul>
<li>driver: SOAP::RPC::Driver object with the remote SOAP methods for this
service

</li>
<li>api: the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs

</li>
</ul>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show</a>
                        
                    </p>
                    <div id="M000075_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 34</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">driver</span>, <span class="ruby-identifier">api</span>)
          <span class="ruby-ivar">@driver</span> = <span class="ruby-identifier">driver</span>
          <span class="ruby-ivar">@api</span> = <span class="ruby-identifier">api</span>
          <span class="ruby-ivar">@module</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="sectiontitle">Instance Public methods</div>
            
            <div class="method">
                <div class="title" id="M000076">
                    
                    <a name="M000076"></a><b>deleteReport</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#deleteReport">deleteReport</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#deleteReport">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>reportJobId: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show</a>
                        
                    </p>
                    <div id="M000076_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 49</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deleteReport</span>(<span class="ruby-identifier">reportJobId</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
                <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">DeleteReport</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">deleteReport</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;deleteReport Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000089">
                    
                    <a name="M000089"></a><b>downloadCsvReport</b>(job_id)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the <a
href="../../Extensions.html#M000019">AdWords::Extensions.downloadCsvReport</a>
method with <tt>self</tt> as the first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">show</a>
                        
                    </p>
                    <div id="M000089_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 212</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downloadCsvReport</span>(<span class="ruby-identifier">job_id</span>)
          <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">downloadCsvReport</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">job_id</span>)
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000088">
                    
                    <a name="M000088"></a><b>downloadXmlReport</b>(job_id)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the <a
href="../../Extensions.html#M000015">AdWords::Extensions.downloadXmlReport</a>
method with <tt>self</tt> as the first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">show</a>
                        
                    </p>
                    <div id="M000088_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 206</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downloadXmlReport</span>(<span class="ruby-identifier">job_id</span>)
          <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">downloadXmlReport</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">job_id</span>)
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000078">
                    
                    <a name="M000078"></a><b>getAllJobs</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getAllJobs">getAllJobs</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getAllJobs">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li>getAllJobsReturn: SOAP::SOAPArray of <a
href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show</a>
                        
                    </p>
                    <div id="M000078_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 71</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getAllJobs</span>()
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetAllJobs</span>.<span class="ruby-identifier">new</span>()
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getAllJobs</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getAllJobs Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000080">
                    
                    <a name="M000080"></a><b>getGzipReportDownloadUrl</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getGzipReportDownloadUrl">getGzipReportDownloadUrl</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getGzipReportDownloadUrl">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>reportJobId: SOAP::SOAPLong

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getGzipReportDownloadUrlReturn: SOAP::SOAPString

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show</a>
                        
                    </p>
                    <div id="M000080_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 94</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getGzipReportDownloadUrl</span>(<span class="ruby-identifier">reportJobId</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
                <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetGzipReportDownloadUrl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getGzipReportDownloadUrl</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getGzipReportDownloadUrl Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000082">
                    
                    <a name="M000082"></a><b>getReportDownloadUrl</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportDownloadUrl">getReportDownloadUrl</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportDownloadUrl">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>reportJobId: SOAP::SOAPLong

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getReportDownloadUrlReturn: SOAP::SOAPString

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show</a>
                        
                    </p>
                    <div id="M000082_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 119</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getReportDownloadUrl</span>(<span class="ruby-identifier">reportJobId</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
                <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetReportDownloadUrl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getReportDownloadUrl</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getReportDownloadUrl Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000084">
                    
                    <a name="M000084"></a><b>getReportJobStatus</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportJobStatus">getReportJobStatus</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportJobStatus">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>reportJobId: SOAP::SOAPLong

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>getReportJobStatusReturn: <a
href="ReportJobStatus.html">AdWords::V13::ReportService::ReportJobStatus</a>

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000084_source')" id="l_M000084_source">show</a>
                        
                    </p>
                    <div id="M000084_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 144</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getReportJobStatus</span>(<span class="ruby-identifier">reportJobId</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
                <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetReportJobStatus</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getReportJobStatus</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;getReportJobStatus Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000086">
                    
                    <a name="M000086"></a><b>scheduleReportJob</b>(job)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#scheduleReportJob">scheduleReportJob</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#scheduleReportJob">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>job: <a href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>

</li>
</ul>
<p>
Returns:
</p>
<ul>
<li>scheduleReportJobReturn: SOAP::SOAPLong

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show</a>
                        
                    </p>
                    <div id="M000086_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 169</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scheduleReportJob</span>(<span class="ruby-identifier">job</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'job'</span>,
                <span class="ruby-identifier">job</span>, <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportJob</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ScheduleReportJob</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">job</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">scheduleReportJob</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;scheduleReportJob Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="M000087">
                    
                    <a name="M000087"></a><b>validateReportJob</b>(job)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#validateReportJob">validateReportJob</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#validateReportJob">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li>job: <a href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>

</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show</a>
                        
                    </p>
                    <div id="M000087_source" class="dyn-source">
                        <pre><span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 191</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validateReportJob</span>(<span class="ruby-identifier">job</span>)
          <span class="ruby-keyword kw">begin</span>
            <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'job'</span>,
                <span class="ruby-identifier">job</span>, <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportJob</span>)
            <span class="ruby-comment cmt"># Construct request object and make API call</span>
            <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ValidateReportJob</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">job</span>)
            <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">validateReportJob</span>(<span class="ruby-identifier">obj</span>)
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
            <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
                <span class="ruby-value str">&quot;validateReportJob Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
</div>
    </div>
  </body>
</html>    